package ace.module.upms.core.impl.dao.repository;


import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.upms.core.impl.constant.UpmsCoreConstant;
import ace.module.upms.core.impl.dao.entity.UpmsApplication;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * 权限应用 repository.
 *
 * @author Caspar
 */
@DS(UpmsCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface UpmsApplicationRepository
    extends QuerydslJdbcBaseRepository<UpmsApplication,Long> {

  UpmsApplication getByOutTypeAndOutIdAndDeleteFlag(String outType, String outId, Long deleteFlag);

  UpmsApplication getByKey(String key);
}
